package com.mall.db.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 
 * </p>
 *
 * @author HQJ
 * @since 2021-09-22
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("t_order")
public class Order extends BaseEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 订单表
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 订单编号
     */
    private Integer number;

    /**
     * 用户头像
     */
    private String userPhoto;

    /**
     * 下单昵称
     */
    private String user;

    /**
     * 下单时间
     */
    private LocalDateTime orderTime;

    /**
     * 订单状态
     */
    private Integer status;

    /**
     * 订单金额
     */
    private Integer money;

    /**
     * 实付金额
     */
    private Integer actuallyPaid;

    /**
     * 支付时间
     */
    private LocalDateTime paymentTime;

    /**
     * 收货人
     */
    private String receiver;

    /**
     * 收货电话
     */
    private Integer phone;

    /**
     * 物流单号
     */
    private Integer single;

    /**
     * 物流id
     */
    private Integer courier;

    /**
     * 收货地址id
     */
    private Integer addressId;


    /**
     * 商品id
     */
    private Integer goodsId;

}
